home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17263 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: ix.netcom.com!netnews
  2. From: bbk@ix.netcom.com (Bill Kirby)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland C++ and CGI
  5. Date: Sun, 14 Apr 1996 07:28:19 GMT
  6. Organization: Netcom
  7. Message-ID: <4kq9sc$bt9@reader2.ix.netcom.com>
  8. References: <4konfi$hl4@hearst.cac.psu.edu>
  9. NNTP-Posting-Host: sjx-ca28-09.ix.netcom.com
  10. X-NETCOM-Date: Sun Apr 14 12:35:40 AM PDT 1996
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. waj106@email.psu.edu (Coren) wrote:
  14.  
  15. >I know I'm just missing something fairly simple here but....
  16.  
  17. >I have Borland 3.0 C++ compiler for windows.  I have written a program that 
  18. >takes input and creates a HTML page.  The only problem is that I cannot get it 
  19. >to dynamically create a new page.  I know that you are supposed to output 
  20. >something like "Content-type: text/plain\n\n" but this doesn't seem to do any 
  21. >good.  I have tried it with a normal cout but then I saw that someone used 
  22. >it with a function called 'puts' instead of cout.  As it is, if I leave all 
  23. >outputs as couts, when I run it from a browser it says "empty output from CGI 
  24. >program."  Can anyone help me with this?  Thanks.
  25.  
  26. I had similar problems that were solved by adding an extra blank line
  27. to the output.  That is, the very last line of the program should
  28. output a couple of carraige-return/line-feed pairs.  Hope it works for
  29. you.
  30.  
  31.  
  32.  
  33.  
  34.  
  35. *
  36. +---------------------+-----------------------------------------------------------------+
  37. | Bill Kirby          | The Windward Group is seeking experienced Windows programmers   |
  38. | The Windward Group  | (C++, MFC, Visual Basic) to join our Los Gatos CA office.  To   |
  39. | bkirby@wwg.com      | learn more about us, visit our web page at www.wwg.com.  E-mail |
  40. | bbk@ix.netcom.com   | resumes to bkirby@wwg.com.  (Prinicipals only please)           |
  41. +---------------------+-----------------------------------------------------------------+
  42.  
  43.